package com.example.service;

import com.example.entity.Test;
import com.example.entity.User;
import com.example.mapper.SysLogBoMapper;
import com.example.mapper.TestMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: zsw
 * @time: 2021/9/1 13:50
 */
@Slf4j
@Service
public class TestService {
    @Autowired
    private TestMapper testMapper;
    public Test update(Integer id, Test test) {
        test.setId(id);
        testMapper.update(test);
        return test;
    }

    public Test add( Test test) {
        testMapper.insert(test);
        return test;
    }
}
